import * as XLSX from 'xlsx'
import { addModels } from './readXlsx'
import { addManyWire } from '@/apis/wireAPI'

export async function readWire(wb: XLSX.WorkBook) {
  const model = {
    wireName: '',
    wireStyle: '',
    wireWeight: 0,
    wirePower: 0,
    remark: '',
  } as WireModel
  await addModels(wb, 'wires', model, addManyWire, undefined)
}
